package JavaSE_core.Duo_Thread;

public class LazySingleton {
	private static LazySingleton ls;
	private LazySingleton() {
	}
	public static LazySingleton getInstance(){
		//线程同步的懒汉式单例设计模式
			if (ls==null) {
				synchronized ("锁") {
					if (ls==null) {
						ls=new LazySingleton();
					}
				}
			}
	
		return ls;
	}
}
